package com.sitech.ibnms.c3p.service;

import org.apache.ignite.services.Service;
import org.apache.ignite.services.ServiceContext;

/**
 * Created by leo on 16/3/1.
 */
public abstract class IgniteService implements Service {

    @Override
    public void cancel(ServiceContext ctx) {
        System.out.println("Ignite Service was cancelled:" + ctx.name());
    }

    @Override
    public void init(ServiceContext ctx) throws Exception {
        System.out.println("Ignite Service was initialized: " + ctx.name());
    }

    @Override
    public void execute(ServiceContext ctx) throws Exception {
        System.out.println("Executing distributed Ignite Service: " + ctx.name());
    }
}
